<?php  
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

defined('_JEXEC') or die('Retricted Access');

global $mainframe;
JHTML::_('behavior.tooltip');

?>
<style type="text/css">
	td.key{
		font-weight:normal !important;
		text-align:left !important;
	}
	td.master{
		font-weight:bold !important;
	}
</style>
<script language="javascript" type="text/javascript">
function changePageType(value){    
    $$('div.config_page').each(function(el){        
        el.setStyle('display', 'none');        
    });
        
    if( $(value) ){
        $(value).setStyle('display', '');
    }
}

window.addEvent('domready', function() {
    $$('div.config_page').each(function(el){        
        el.setStyle('display', 'none');        
    });
    $('Page1').setStyle('display', '');
});

</script>
<form action="index.php" method="post" name="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<?php echo $this->getTabs();?>
	</fieldset>	
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Meta Data Setting' ); ?></legend>		
		<table class="admintable" width="100%">
		<tbody>
		    <tr>
				<td class="key">
					<label for=""><?php echo JText::_( 'Avalable keys' ); ?></label>:
				</td>
				<td width="79%">	
    			<table cellpadding="2" cellspacing="0" border="0" style="border-color:#CCC">
    				<tr>
    				    <td><strong>Key</strong></td><td><strong>Description</strong></td>
    				</tr>
    				<tr>
    				    <td>{SITE_TITLE}</td><td>Site title</td>
    				</tr>
    				<tr>
    				    <td>{SITE_KEYWORDS}</td><td>Site keywords</td>
    				</tr>
    				<tr>
    				    <td>{SITE_DESCRIPTION}</td><td>Site description</td>
    				</tr>
    				<tr>
    				    <td>{JOB_TITLE}</td><td>Job title</td>
    				</tr>
    				<tr>
    				    <td>{JOB_DESCRIPTION}</td><td>Job description</td>
    				</tr>
    				<tr>
    				    <td> </td><td> </td>
    				</tr>
    				<tr>
    				    <td>{PROFILE_TITLE}</td><td>Profile title</td>
    				</tr>
    				
    				<tr>
    				    <td> </td><td> </td>
    				</tr>
    				<tr>
    				    <td>{RESUME_TITLE}</td><td>Resume title</td>
    				</tr>
    				
				</table>
				</td>
			</tr>
						
		      <tr>
				<td colspan="2" class="key master" style="text-align:left; font-size:12px;">
					<?php echo JText::_( 'Meta data' ); ?>
				</td>				
			</tr>
			<tr>
				<td class="key">
					<?php echo JText::_( 'Page type' ); ?>:
				</td>
				<td width="79%">					
					<select name="PageType" onchange="changePageType(this.value);" >
					   <optgroup label="<?php echo JText::_("Jobs");?>">
        					<option value="Page1"><?php echo JText::_("Job Listing page");?></option>
        					<option value="Page2"><?php echo JText::_("Job Details page");?></option>
        					<option value="Page3"><?php echo JText::_("Job posted by Emplyer");?></option>
        					<option value="Page4"><?php echo JText::_("Search job");?></option>
    					</optgroup>
    					<optgroup label="Employer">
        					<option value="Page5"><?php echo JText::_("Employer register form");?></option>
        					<option value="Page6"><?php echo JText::_("List of profiles");?></option>
        					<option value="Page7"><?php echo JText::_("Profile details");?></option>        					
    					</optgroup>
    					<optgroup label="Job Seeker">
        					<option value="Page8"><?php echo JText::_("Job Seeker register form");?></option>
        					<option value="Page9"><?php echo JText::_("List of resumes");?></option>
        					<option value="Page10"><?php echo JText::_("Resume details");?></option>        					
    					</optgroup>
					</select>
				</td>
			</tr>
			</tbody>
		</table>
		
			<div id="Page1" class="config_page">
			<table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="job_list_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[job_list_title]" value="<?php echo $this->params->get('job_list_title', '{SITE_TITLE}');?>" id="job_list_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_list_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_list_keyword]" id="job_list_keyword" ><?php echo $this->params->get('job_list_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_list_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_list_description]" id="job_list_description" ><?php echo $this->params->get('job_list_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>	
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page2" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="job_page_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[job_page_title]" value="<?php echo $this->params->get('job_page_title', '{JOB_TITLE} - {SITE_TITLE}');?>" id="job_page_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_page_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_page_keyword]" id="job_page_keyword" ><?php echo $this->params->get('job_page_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_page_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_page_description]" id="job_page_description" ><?php echo $this->params->get('job_page_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page3" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="job_employer_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[job_employer_title]" value="<?php echo $this->params->get('job_employer_title', 'Job posting by {PROFILE_TITLE}');?>" id="job_employer_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_employer_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_employer_keyword]" id="job_employer_keyword" ><?php echo $this->params->get('job_employer_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_employer_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_employer_description]" id="job_employer_description" ><?php echo $this->params->get('job_employer_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page4" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="job_search_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[job_search_title]" value="<?php echo $this->params->get('job_search_title', 'Search job');?>" id="job_search_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_search_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_search_keyword]" id="job_search_keyword" ><?php echo $this->params->get('job_search_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="job_search_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[job_search_description]" id="job_search_description" ><?php echo $this->params->get('job_search_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page5" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="emp_reg_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[emp_reg_title]" value="<?php echo $this->params->get('emp_reg_title', 'Register as an Employer - {SITE_TITLE}');?>" id="emp_reg_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="emp_reg_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[emp_reg_keyword]" id="emp_reg_keyword" ><?php echo $this->params->get('emp_reg_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="emp_reg_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[emp_reg_description]" id="emp_reg_description" ><?php echo $this->params->get('emp_reg_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page6" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="emp_list_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[emp_list_title]" value="<?php echo $this->params->get('emp_list_title', 'List of companys');?>" id="emp_list_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="emp_list_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[emp_list_keyword]" id="emp_list_keyword" ><?php echo $this->params->get('emp_list_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="emp_list_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[emp_list_description]" id="emp_list_description" ><?php echo $this->params->get('emp_list_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page7" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="emp_details_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[emp_details_title]" value="<?php echo $this->params->get('emp_details_title', 'View details of {PROFILE_TITLE}');?>" id="emp_details_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="emp_details_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[emp_details_keyword]" id="emp_details_keyword" ><?php echo $this->params->get('emp_details_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="emp_details_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[emp_details_description]" id="emp_details_description" ><?php echo $this->params->get('emp_details_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page8" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="res_reg_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[res_reg_title]" value="<?php echo $this->params->get('res_reg_title', 'Register as a Job Seeker - {SITE_TITLE}');?>" id="res_reg_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="res_reg_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[res_reg_keyword]" id="res_reg_keyword" ><?php echo $this->params->get('res_reg_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="res_reg_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[res_reg_description]" id="res_reg_description" ><?php echo $this->params->get('res_reg_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page9" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="res_list_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[res_list_title]" value="<?php echo $this->params->get('res_list_title', 'List of resumes');?>" id="res_list_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="res_list_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[emp_list_keyword]" id="res_list_keyword" ><?php echo $this->params->get('res_list_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="res_list_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[res_list_description]" id="res_list_description" ><?php echo $this->params->get('res_list_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
		   <div id="Page10" class="config_page">
		   <table class="admintable" width="100%">
    		<tbody>
    			<tr>
    				<td class="key">
    					<label for="res_details_title"><?php echo JText::_( 'Page title' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<input type="text" name="seo[res_details_title]" value="<?php echo $this->params->get('res_details_title', 'View details of {RESUME_TITLE}');?>" id="emp_details_title"  size="90">
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="res_details_keyword"><?php echo JText::_( 'Page keywords' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[res_details_keyword]" id="res_details_keyword" ><?php echo $this->params->get('res_details_keyword', '{SITE_KEYWORDS}');?></textarea>
    				</td>
    			</tr>
    			<tr>
    				<td class="key">
    					<label for="res_details_description"><?php echo JText::_( 'Page description' ); ?></label>:
    				</td>
    				<td width="79%">					
    					<textarea rows="2" cols="50" name="seo[res_details_description]" id="res_details_description" ><?php echo $this->params->get('res_details_description', '{SITE_DESCRIPTION}');?></textarea>
    				</td>
    			</tr>
    			</tbody>
    		</table>
		   </div>
		   
	</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="<?php echo JBCOMNAME; ?>" />
<input type="hidden" name="view" value="jaconfiguration" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="tab" value="<?php echo $this->tab; ?>" />
<input type="hidden" name="cid" value="<?php echo $this->cid; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>	
</form>